<?php
defined('BASEPATH') OR exit('No direct script access allowed');

/*
|--------------------------------------------------------------------------
| Display Debug backtrace
|--------------------------------------------------------------------------
|
| If set to TRUE, a backtrace will be displayed along with php errors. If
| error_reporting is disabled, the backtrace will not display, regardless
| of this setting
|
*/
defined('SHOW_DEBUG_BACKTRACE') OR define('SHOW_DEBUG_BACKTRACE', TRUE);


#ACCESS_TOKEN过期时间
define('ACCESS_TOEKN_EXPIRES_TIME',3600*2 );
#验证码过期时间
define('SMS_CODE_EXPIRES',60*2 );
#验证码发送频率
define('SMS_CODE_FREQUENCY',60);


define('CLIENT_ALIPAY_PARTNER', '2088221876799575');
define('CLIENT_ALIPAY_KEY' ,'MIICdwIBADANBgkqhkiG9w0BAQEFAASCAmEwggJdAgEAAoGBALS0AHO7KAWXo4AX
siHgkZzQZACqciuaTZEz7AZI0fiEbBE3Pgs6uAZt1QI28K97LE75w/H9YRQjCzBA
30rgL4++p6Y5CgPMAdj7eeYhv9S/2WV08Oz/QOOomk0qrBjhvETS7tMjrUr/vW2E
Fojx7MGNzsUNz2CmDdZM7Ciguz4zAgMBAAECgYAN6y99upTCmYOGgky+P0X4BjUt
t/NDWIdQ/+bWNRW3RrvsN40X4FX8aMlXelPfsGUhUCu/n/yySGC8PsL0SYBgOOVq
VFlCMrBjiDXJLyRwrnavZi/CXCEPVI2VKIYLINjTIiCkCf0f0NdbZ80aE8QeUtW9
vlnujvkyXyRbIL2FwQJBAOSDKK20v+lbL6uXbj+ymN0dhwDM1vTJTbr+/9Q2Ldxn
7KhUjTpwMlGqp8SQ7Gb8IVJ4R7IwG5f2iYtSlwQ4mN0CQQDKcJlyzwzqOm2knDXo
qdhXNBDrdgLGinp2FIVrzPWgG7/gkqhdNhufgogfpfj/3+LSDdbPq5j9eDH2Z/Uo
CjpPAkEAlRVxA6tKDa/9MODx/8LAcnoiKwZ5M2jmOprFQ6k5UHPI9aV8ImUynw9M
tzSp1yKlhs2MUReL2R/yaqAugIWATQJBAIClI25pE0z5yllUB5IN9PQdmy72dHcU
4xOMoOjLe7++QqYErMdnLhCkk7qA74YzEWHo93xLENLqgd2TXKCQN1MCQHWNOhNE
R26cau2z2EqrH3IRNNpI64yOaYu/jYENH4dCakn2AFrz79Kik1poBsGFY3DDlyYq
z5LlL95dbeybVq0=');
define('CLIENT_ALIPAY_EMAIL', 'ec@beyo.com.cn');


/*极光推送*/

//母婴 正式 U养
/*appkeys*/
//define('JG_APPKEYS', '66f3bb78621430a5590a724e');
/*masterSecret*/
//define('JG_SECRET', '9af0f8b35ea50cad0d081893');


//母婴早教 测试 U养
define('JG_APPKEYS', '87c3fdc44244e6b6b27f997c');
define('JG_SECRET', '0e350ffb51361be6c1639ca2');


/*推送地址*/
//define('JG_URL', 'http://api.jpush.cn:8800/v2/push');
define('JG_URL', 'https://api.jpush.cn/v3/push');


/*
|--------------------------------------------------------------------------
| File and Directory Modes
|--------------------------------------------------------------------------
|
| These prefs are used when checking and setting modes when working
| with the file system.  The defaults are fine on servers with proper
| security, but you may wish (or even need) to change the values in
| certain environments (Apache running a separate process for each
| user, PHP under CGI with Apache suEXEC, etc.).  Octal values should
| always be used to set the mode correctly.
|
*/
defined('FILE_READ_MODE')  OR define('FILE_READ_MODE', 0644);
defined('FILE_WRITE_MODE') OR define('FILE_WRITE_MODE', 0666);
defined('DIR_READ_MODE')   OR define('DIR_READ_MODE', 0755);
defined('DIR_WRITE_MODE')  OR define('DIR_WRITE_MODE', 0755);

/*
|--------------------------------------------------------------------------
| File Stream Modes
|--------------------------------------------------------------------------
|
| These modes are used when working with fopen()/popen()
|
*/
defined('FOPEN_READ')                           OR define('FOPEN_READ', 'rb');
defined('FOPEN_READ_WRITE')                     OR define('FOPEN_READ_WRITE', 'r+b');
defined('FOPEN_WRITE_CREATE_DESTRUCTIVE')       OR define('FOPEN_WRITE_CREATE_DESTRUCTIVE', 'wb'); // truncates existing file data, use with care
defined('FOPEN_READ_WRITE_CREATE_DESCTRUCTIVE') OR define('FOPEN_READ_WRITE_CREATE_DESTRUCTIVE', 'w+b'); // truncates existing file data, use with care
defined('FOPEN_WRITE_CREATE')                   OR define('FOPEN_WRITE_CREATE', 'ab');
defined('FOPEN_READ_WRITE_CREATE')              OR define('FOPEN_READ_WRITE_CREATE', 'a+b');
defined('FOPEN_WRITE_CREATE_STRICT')            OR define('FOPEN_WRITE_CREATE_STRICT', 'xb');
defined('FOPEN_READ_WRITE_CREATE_STRICT')       OR define('FOPEN_READ_WRITE_CREATE_STRICT', 'x+b');

/*
|--------------------------------------------------------------------------
| Exit Status Codes
|--------------------------------------------------------------------------
|
| Used to indicate the conditions under which the script is exit()ing.
| While there is no universal standard for error codes, there are some
| broad conventions.  Three such conventions are mentioned below, for
| those who wish to make use of them.  The CodeIgniter defaults were
| chosen for the least overlap with these conventions, while still
| leaving room for others to be defined in future versions and user
| applications.
|
| The three main conventions used for determining exit status codes
| are as follows:
|
|    Standard C/C++ Library (stdlibc):
|       http://www.gnu.org/software/libc/manual/html_node/Exit-Status.html
|       (This link also contains other GNU-specific conventions)
|    BSD sysexits.h:
|       http://www.gsp.com/cgi-bin/man.cgi?section=3&topic=sysexits
|    Bash scripting:
|       http://tldp.org/LDP/abs/html/exitcodes.html
|
*/
defined('EXIT_SUCCESS')        OR define('EXIT_SUCCESS', 0); // no errors
defined('EXIT_ERROR')          OR define('EXIT_ERROR', 1); // generic error
defined('EXIT_CONFIG')         OR define('EXIT_CONFIG', 3); // configuration error
defined('EXIT_UNKNOWN_FILE')   OR define('EXIT_UNKNOWN_FILE', 4); // file not found
defined('EXIT_UNKNOWN_CLASS')  OR define('EXIT_UNKNOWN_CLASS', 5); // unknown class
defined('EXIT_UNKNOWN_METHOD') OR define('EXIT_UNKNOWN_METHOD', 6); // unknown class member
defined('EXIT_USER_INPUT')     OR define('EXIT_USER_INPUT', 7); // invalid user input
defined('EXIT_DATABASE')       OR define('EXIT_DATABASE', 8); // database error
defined('EXIT__AUTO_MIN')      OR define('EXIT__AUTO_MIN', 9); // lowest automatically-assigned error code
defined('EXIT__AUTO_MAX')      OR define('EXIT__AUTO_MAX', 125); // highest automatically-assigned error code


/*token公钥*/
define('TOKEN_KEY','1d93(d#3*jd-k2.23sks##$dj!@kd942*k');
/*表前缀*/
define('DB_PREFIX', '');
/*是否记录数据库操作日志*/
define('DBLOG', true);
/*是否开启错误日志*/
define('ERRORLOG', true);
